#define _CRT_SECURE_NO_WARNINGS 1

/*
#include<iostream>
using namespace std;
int main(){
	int a,n;
	cin>>a>>n;
	if((1<=a&&a<=9)&&(1<=n&&n<=6)){
		int num=a,sum=a;
		for(int i=1;i<n;i++){
			num=10*num+a;
			sum+=num;
		}
		cout<<sum<<endl;
	}
	return 0;
} */



/*
#include<iostream>
using namespace std;
int main(){
	int sum=0;
	int a,n,A;
	cin>>a>>n;
	for(int i=0,A=a;i<n;i++){
		sum+=a;
		a=A+10*a;
	}
	cout<<sum<<endl;
	return 0;
}  */




#include<iostream>
using namespace std;
int main() {
	int a, n;
	int sum = 0;
	cin >> a >> n;
	for (int i = 1; i <= n; i++) {
		sum = 10 * sum + i;
	}
	sum *= a;
	cout << sum;
	return 0;
}